package com.ruoyi.recycle.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 积分订单商品中间对象 integral_order_commodity
 *
 * @author ruoyi
 * @date 2022-05-22
 */
@ApiModel("积分订单商品")
@Data
public class IntegralOrderCommodity implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 租户号 */
    @ApiModelProperty(name = "id", value = "积分订单商品id", dataType = "Long")
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    @ApiModelProperty(name = "orderId", value = "订单ID", dataType = "Long")
    private Long orderId;

    /** 商品ID */
    @Excel(name = "商品ID")
    @ApiModelProperty(name = "id",value = "商品ID",dataType = "Long")
    private Long commodityId;

    /** 创建人 */
    @Excel(name = "创建人")
    @ApiModelProperty(name = "createdBy",value = "创建人",dataType = "String")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "createdTime",value = "创建时间",dataType = "Date",notes = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    @ApiModelProperty(name = "updatedBy",value = "更新人",dataType = "String")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "updatedTime",value = "更新时间",dataType = "Date",notes = "yyyy-MM-dd")
    private Date updatedTime;

    /** 商品ID */
    @Excel(name = "数量")
    @ApiModelProperty(name = "quantity",value = "数量",dataType = "Integer")
    private Integer quantity;

    /** 商品ID */
    @Excel(name = "尺寸ID")
    @ApiModelProperty(name = "sizeId",value = "尺寸ID",dataType = "Long")
    private Long sizeId;

    @Override
    public String toString() {
        return "IntegralOrderCommodity{" +
                "id=" + id +
                ", orderId=" + orderId +
                ", commodityId=" + commodityId +
                ", createdBy='" + createdBy + '\'' +
                ", createdTime=" + createdTime +
                ", updatedBy='" + updatedBy + '\'' +
                ", updatedTime=" + updatedTime +
                ", quantity=" + quantity +
                ", sizeId=" + sizeId +
                '}';
    }
}
